Mailcoach V2.00 SMTP / POP3 server with UUCP transport System requirements 4 Client software support 4 Features 5 New features in V2.0 5 Ordering information 5 Registration 5 Setting up the server 6 Windows 95 6 Windows NT 3.51 6 Windows NT 4.0 6 Setting up the client 7 Windows 95, NT 3.51 and NT4.0 7 Installing Mailcoach 7 Configuring Mailcoach 8 Menu: Setup - System 8 Menu: setup - hosts 10 Menu: Setup - Users 13 Menu: Setup - Transport schedule 15 Other menus 16 File menu 16 View menu 16 Help 16 Remote commands 17 Register new user through e-mail 17 Deleting user through e-mail 17 Create an ”Auto reply” mail 18 Deleting an ”Auto reply” mail 18 Setting up a forward adress through e-mail 19 Deactivating a forward adress through e-mail 19 Sending priority mail 20 Internal mail transport and sorting 20 Sorting lists 20 Creating scripts 21 Summary 21 Structure 21 Variables 21 Login variables 22 System variables 22 String constants 22 Expressions 23 Comments 23 Keywords 23 Commands 23 Reserved words 25 Additional information 25 Support 26 Mailcoach V2.00 Mailcoach provides the link between your Local Area Network (LAN) and the global Internet. It is a gateway product that provides SMTP (Simple Mail Transport Protocol) and POP3 (Post Office Protocol Ver 3) servers for the local LAN that delivers and receives E-mail from your Internet Service Provider (ISP) using the UNIX To UNIX Copy Protocol (UUCP). This means that it can receive and deliver mail to the LAN using standard (and often free) Internet mail software. You can schedule Mailcoach to deliver mail to your ISP at regular intervals. Once the mail has been forwarded, any mail addressed to your LAN is downloaded and stored by Mailcoach. When the next user logs into the LAN these stored messages are downloaded to the individual workstation. There are several advantages using this method instead of multiple mailbox accounts at your ISP: 1. It’s cost effective as all mail are transferred in compressed form at the same time. 2. As system administrator you are in control of the E-mail system. You decide the number of mailboxes, what their name is and who they are allocated to. 3. You can manage your own domain rather than advertising your ISP’s domain name on every E-mail message. System requirements • Windows 95 or Windows NT 3.51 or later. • Memory requirements Windows 95, 8 MB, 16 recommended • Memory requirements NT3.51- minimum 16 MB, 24 recommended • LAN with TCP/IP protocol installed. • A modem, minimum 14.400 bps • UUCP account at your ISP Client software support Mailcoach should work with any Internet mail software using SMTP/POP3. The following programs have been successfully tested: • Netscape® navigator • Microsoft® Exchange • Microsoft mail & news • Eudora • Pegasus mail • Forte Agent, Forte Free agent • Embla • Pronto mail • MTXLink mail client All company and product names mentioned herein are trademarks or registered trademarks of their respective companies. Features • SMTP/POP3 server • UUCP mail transport • Individual or Global POP3 password. • Unlimited number of alias for each user • Any mailbox can have auto reply message • Can automatically forward mail to any specified address • Urgent mail can immediately be transported to your ISP with the Priority Mail feature • Supports optional user registration through E-mail • An auto-reply can be set up by E-mail. The auto-reply can contain attachments of any kind. • System administration can be performed from ant workstation through E- mail • Easy to install and administrate. • Fully complies with RFC 821, 822 and 1725. Some support for 1869/1870. New features in V2.0 • Built in UUCP transport with almost double throughput compared to V1.0 • Can handle several domains and hosts simultaneously. • Connect to remote hosts via TCP/IP and PPP • Change forward address and activate/deactivate via E-mail. • Distribution lists. • Now using Windows telephone API (TAPI) where available. • New script engine, compatible with Windows 95 scripts. • Schedule has got more options. • More logging options available. • Optimized for handling large attachments. Ordering information For pricing and ordering information, see Mailcoach homepage at: http://www.ymex.se/mailcoach.htm Registration When shipped, Mailcoach is a 3-user trial version. When you register Mailcoach, you will receive a key that you enter into Mailcoach. The key contains information about your registration, serial number and the number of users you have ordered. This way you only need to order a new key to add more users. Setting up the server Windows 95 1. Setup the TCP/IP protocol. Choose ”Start”-button, ”settings”, ”Control panel” 2. Double-click the ”Network” icon. In the dialog box, there should be a TCP/IP protocol installed to your network card, if not, choose the ”add” button select ”protocol”, choose TCP/IP. Now you should see TCP/IP( in the listbox. 3. Select the TCP/IP protocol in the list-box, choose the ”properties” button, select the ”IP-address” tab, specify the IP-address as 192.168.0.1 and ”subnet mask” as 255.255.255.0 4. DNS tab, If you are about to use the UUCP via TCP/IP option, follow the instructions you have received from your ISP to setup a SLIP or PPP account. 5. Choose the ”OK” button. If Windows asks you to reboot, select ”yes”. 6. Your server is configured! Windows NT 3.51 1. Setup the TCP/IP protocol. Open the ”Main” program group. Double click on the ”Control panel” icon. 2. In the control panel, double-click the ”Network” icon. Check if there is a TCP/IP protocol available in the ”installed network software”-listbox. If not installed, select ”add software”, select the TCP/IP protocol and follow the instructions for installing. 3. Select the TCP/IP protocol in the list-box, choose the ”Configure” button, specify the IP-address as 192.168.0.1 and ”subnet mask” as 255.255.255.0, leave all other fields blank. 4. DNS button, If you are about to use the UUCP via TCP/IP option, follow the instructions you have received from your ISP to setup a SLIP or PPP account. 5. Choose the ”OK” button. If Windows asks you to reboot, select ”yes”. 6. Your server is configured! Windows NT 4.0 1. Setup the TCP/IP protocol. Choose ”Start”-button, ”settings”, ”Control panel” 2. Double-click the ”Network” icon. Select the Protocol tab. In the dialog box, there should be a TCP/IP protocol installed, if not, choose the ”add” button and follow instructions for installing TCP/IP-protocol 3. Select the TCP/IP protocol in the list-box, choose the ”properties” button, select Specify an IP-address Set the IP-address as 192.168.0.1 and ”subnet mask” as 255.255.255.0 4. The DNS tab, If you are about to use the UUCP via TCP/IP option, follow the instructions you have received from your ISP to setup a SLIP or PPP account. 5. Choose the OK button and then the close button. If Windows asks you to reboot, select ”yes”. 6. Your server is configured! Setting up the client Windows 95, NT 3.51 and NT4.0 1. Install and configure TCP/IP by following the instructions for the server but use a unique IP-address for each client, 192.168.0.2 for the first, 192.168.0.3 for the second and so on. 2. Choose the ”OK” button. If Windows asks you to reboot, select ”yes”. 3. Create a hosts file. Use the notepad. Enter one line containing: IP-Adress InternetDomain. Example: 192.168.0.2 company.com ”InternetDomain” is your registered internet domain, for example ”company.com” Be sure to strike carriage return at the end of the above line before saving. 1. Save the file as ”hosts”, into Windows 95/NT directory, usually C:\WINDOWS. 2. Rename the file created (hosts.txt) to ”hosts”, with no extension. 3. Repeat step 1-5 for each client. Installing Mailcoach Packet zip version • Unzip the file: Mcoach.zip to an empty directory. • Run setup.exe Disk version • Insert Disk 1 of 3 into A: • Select ”Run” from your ”start” menu or from ”file” menu if NT 3.51, type A:\Setup.exe and strike ENTER. Follow the instructions. Configuring Mailcoach Menu: Setup - System General - tab Timezone: Enter your local time zone, for example GMT, PDT, EST or similar. Local diff: The local differential, for example +0200 (in the range of +/-1200) Global POP3 password: The mail administrator may decide whether a global password will be used or individual password for each user. If one or more users should use a global password, enter this password here. Domain: Enter the domain name that is used on your server if available. This field is optional. IP-address: If you have followed our setup instructions for the server, enter 1 as the IP-address. Priority mail method: Method to use when requesting priority mail transport This is further described in the Sending priority mail -section Use X-priority field: Some Mail programs uses the header field called X- priority to indicate the level of priority. If this option is selected and mail is sent with priority of 1 (highest), the UUCP transport will start immediately. Use (priority) in the subject field: Some mail program does not support priority mail, in these cases you can still use the priority function by writing: ”(priority)” at the end of your ”Subject” line. The command itself will be removed before transferring the mail. Allow user registration through E-mail: When this option is activate, all users can register there own E-mail address by sending an E-mail to Mailcoach. This is further described in the ”Remote command” section Server windows visible: The two servers, SMTP and POP3 is running as two small separate windows. If this option is unchecked, these windows will be hidden. Ports - tab SMTP-Port: The port where the SMTP service can be found. This should normally never be changed! POP3-Port: The port where the POP3 service can be found. This should normally never be changed! Reserved names - tab Some user names should be reserved for use by system administrator only and some names are used internally by Mailcoach. Such name is ”postmaster”. There are already a few names registered in this list and they cannot be removed. If you like to add your own ”reserved name”, for example ”webmaster”, type the name in the Reserved name - field and press the ”add” button. If you want to remove a ”Reserved name”, select the name from the list and press the ”remove” -button. Logging There are two groups of logging options. ”Normal” and ”Fault localization”. Normal: these options create loggs that uses relatively small amount of disk-space and contains the most necessary information. Options within ”Fault localization”, creates loggs with extensive information concerning each issue. The size of these loggs may grow fast for each run. The UUCP-logging options will be reset if Mailcoach is restarted, this is because that if left active, they may soon consume all available hard-disk space. In addition, there are two more loggs that cannot be disabled, events-logg and the error-logg. The event-log contains extraordinary information about certain events. One such event is when mail-files are deleted through the in/out-boxes. All logg-files are saved in the \spool directory. File names: Information about: Mail.log mail sorting. uucp.log mail transport via UUCP. Script.log script processing SmtpPop3.log SMTP and POP3 protocol details UucpCmd.log uucp with handshaking details UucpAdv.log uucp with advanced details. Mailcoach.log errors and suspected errors. Events.log special events. Menu: setup - hosts This page contains a list of available hosts. Usually Mailcoach is used only for one company and it’s Internet domain, but, Mailcoach can handle several companies and several domains, they may even use different ISP. When a UUCP transport is started, all hosts that are shown as ”active” in this list will be interrogated for mail. Note that some of these tabs will look different depending on which operating system you are using. NT3.51 can only connect to a modem directly while Windows 95 and Windows NT4.0 will use Windows Telephone API (TAPI) to connect, therefore, a lot more settings are available in the NT 3.51 setup. New… Press this button to create a new host setup Edit… Select a host in the listbox and press this button to edit. Delete Select a host in the listbox and press this button to delete user. When the ”New” or ”Edit” -button is pressed you will get a menu with the following tabs General - tab Host setup name: This field is for information only. It is displayed in the host-list and when a transport is started. Activated: If this option is not active, no post will be transferred to/from this domain. Mail domain: Your Internet mail domain name should be entered here, for example ”company.com” Note: This domain has nothing to do with the domain specified in Windows 95 / NT networks. Default domain: If a user has not setup a ”return address” in his mail client, Mailcoach will look for a default domain to take care of his mail. Activate this option on one of your hosts setup. If no default domain is found, his mail will be left in the \spool directory. Using: (Modem/TCP/IP) Select if you wish to use direct call (modem) to your ISP, or if you wish to connect via TCP/IP. Only one of the two fields below will be shown depending on this selection. Phone number: The phone number used when connecting to your ISP. This number can be a canonical number, i.e. containing country code. This field is only available if ”Using:” is set to Modem. Remote access entry: Shows a list of available ”Remote access” phone-book entries. There is no way to edit these entries in Mailcoach. Creating and changing ”Remote access” entries must be done in Windows 95 / NT. Select the entry you wish to use when connecting via TCP/IP. This field will only be available if ”Using:” is set to TCP/IP Call retries: If the line is busy when the UUCP-transport is trying to connect, this is the number of retries Mailcoach will do. General - tab cont… Dial timeout: When this time has expired, Mailcoach will quit the dial-up sequence. In most cases it will be used twice, first when waiting for the modem to answer, then when waiting for a ”connect” and/or carrier detect. When using UUCP via TCP/IP, this is used a third time when waiting for the host to answer via TCP/IP. Retry time: Before retrying a call after a busy signal, Mailcoach waits this time. Login - tab: Login name: Enter the login name used when connecting to your ISP. Password: Enter the password used when connecting to your ISP. Uucp login name: If you need to enter an additional username when connecting, use this field. Uucp password: If more then one password is needed when connecting to your ISP, use this field. Local UUCP hostname: Enter the hostname that Mailcoach should use. Remote UUCP hostname: Enter the name of your ISP’s UUCP. Login script - tab This tab contains an simple editor where the scripts can be created or edited. Enter the name of your script file in the ”script filename-field” The filename must have the extension ”SCP”. You can load an example script by pressing the button with three dots. The example script is available in the \Mailcoach directory. Scripts are saved in the \spool directory. See the Creating scripts section for script details Connection - tab Protocol: In this version, only the original UUCP ‘g’ protocol is supported Packet size: Select the packet size you wish your ISP’s UUCP should use when sending to Mailcoach. Windows: Select the number of windows that your ISP’s UUCP may send to Mailcoach without first getting an received acknowledge. The above settings can have great impact on the overall performance of UUCP transport. It can pay off trying to optimize these settings, especially when using long distance call. Recommended setting to start with is 64/7. Note: Not all UUCP implementations can handle size of packets greater then 64 and Windows greater then 3. If you experience problems, set Packet size to 64 and Windows to 3. Connection - tab cont… Settings that are only available in Windows 95/NT 4.0[1] Select location: Select your location from the listbox Location properties… Press this button to edit and create new locations. Connect using: Select the device (modem) you wish to use when connecting. Device properties… Press this button to change settings for your device (modem) Settings that are only available in Windows NT 3.51 Current modem: Contains the name of the current selected modem. Modem… Press this button to select modem manufacturer and model from a list. Comport: Select the comport where your modem is connected. Connectspeed: Select the Baud rate between your PC and modem. If you have chosen a modem from the list, Baud rates higher then your modem can handle are not displayed. Parity: Select parity, none, even, odd. Data bits: Select no databits, 7 or 8 Note: UUCP protocol ‘g’ cannot handle 7-bits. Stop bits: Select 1 or 2 Modem initialization: If you selected modem from the list, the basic initialization string is placed here. You may add additional strings after this if you wish. Remember to end the string with ”carriage return” (^M) Settings that are only available when using UUCP via TCP/IP Host to connect to: Enter the name of the host where your UUCP account is available. UUCP port: Select the port where the UUCP service is available. This is usually port 540. Remote access username: Enter the username used for connecting to your ISP via PPP - TCP/IP Remote access password: Enter the password used when connecting via PPP - TCP/IP Host lookup timeout: When connecting via TCP/IP, Mailcoach checks if the requested host already is available, i.e. a remote access session already active. The time selected here, is the time Mailcoach waits for an answer for this request. If no answer is received before this time has elapsed, Mailcoach will start it’s own Remote access dial-up session. Do not use active connection: If this box is checked, Mailcoach will always create it’s own Remote access session. If one is already available, Mailcoach will not use it. Menu: Setup - Users This page contains a list of registered users. New… Press this button to register a new user Edit… Select a user in the listbox and press this button to edit. Delete Select a user in the listbox and press this button to delete user. When the ”New” or ”Edit” -button is pressed you will get a menu with the following tabs General - tab Username/pop3 account: Enter the name you wish to use when accessing the POP3 account. E-mail address: The E-mail name without domain. POP3 password: If the user should have a private password, enter this here. Access level: This selection determines which level of access the user has. -User Normal access -Priority mail The user can request immediate UUCP transport by choosing priority mail. -Postmaster One, and only one user for each domain must have this selection. This user will receive all mail addressed to postmaster@yourdomain. In this system, the postmaster is also the ”system administrator” Important: When Mailcoach is installed and configured, the access to all settings is protected by password. Only the Postmaster can access settings with his E-mail name and password! Domain: Select the domain that this user should use. Use global pop3 password: If this option is selected, the user uses the global password specified in the ”system - setup - general - tab.” Alias - tab You may set up one or more alias for your E-mail address, for example: If you create the alias: hobie, for the user robert , then mail can be sent either to hobie@yourdomain or to robert@yourdomain If you like to add an ”alias”, type the name in the Alias - field and press the ”add” button. If you want to remove an ”alias”, select the name from the list and press the ”remove” -button. Use alias: This option must be selected to activate the use of alias. Auto reply - tab Allow registration and use of auto reply: If this option is checked, the user can create and add his own ”auto reply” by sending it to Mailcoach. Auto reply is further described in the ”Remote commands” section. Forward - tab Use forwarding: When this option is selected all mail to this user is redirected (forwarded) to the address specified in the ”forward address” field Forward address: Enter the address to where the mail should be forwarded. Distribution - tab Mail to one user can be copied to other users, this can be useful when having an E-mail address info@company.com. In this case, mail could be copied to both the sales office and the support office and each of them can answer the questions that concerns them. Distribution activated: This option must be checked to enable distribution. Keep own mailbox closed: If checked, no mail will be save in this users own mailbox. To add recipients, select a user from the listbox and press the ”add” button. If you want to remove recipients, select from the list and press the ”remove” -button. Menu: Setup - Transport schedule Specify when or how often Mailcoach shall transport your mail. You may select transport at given times and/or intervals. Day: Select the day that this task should be performed. You may select Monday to Friday, weekdays, weekends or every day. Timed: If option is selected, UUCP transport will be performed at given time. Interval: If option is selected UUCP transport will be performed with the interval selected and between the time setup below. Between: Select between which hours the above interval should be valid. Activated: If not checked, the complete schedule is deactivated To select a new transport event, select day, or interval, set time or interval together with between-setting. Press the add button to add this setting to list. You may schedule up to 100 events. To remove a scheduled transport, select from the list and press the remove button. Other menus File menu UUCP Mail transport now! Calls your ISP immediately and exchange mail. Lock system Locks access to Mailcoach menus. To gain access again, ”postmaster” E-mail name and POP3 password must be entered. Exit Terminates Mailcoach. View menu Outbox Shows a list of all mail in all domains, queued for UUCP transport to each host. The contents are updated each minute. It is possible to delete mail from this menu by selecting one or more items and pressing the delete key. However, each time you delete a file in this menu, a comment will be written to the event-logg. This will contain the name of the administrator that deleted files, which files was deleted, the address of the sender and the recipient. Inbox Shows a list of all user mail that has not been fetched yet. The contents are updated each minute. It is possible to delete mail from this menu by selecting one or more items and pressing the delete key. However, each time you delete a file in this menu, a comment will be written to the event-logg. This will contain the name of the administrator that deleted files, which files was deleted, the address of the sender and the recipient. Help Contents… On-line help Register… Select this menu when you want to enter the registration details, this is further described in the Registration section. About… Information about this software and the distributor. Remote commands ”Remote commands” are commands that can be performed by sending a special E- mail to Mailcoach. You will receive an E-mail after approx. 2 minutes containing the result of your request. It is important that the mail software used, has a valid return address in the domain where a remote command is requested. The square brackets shown, must be included. The message body may be left blank. Example: Subject: [john.smith#1234[richard#9876] Register new user through e-mail With Mailcoach, you can let your users register there own e-mail. This function is available only if it’s activated in ”setup - system - general” To register a new user this way the user just sends an e-mail to newuser@yourdomain As subject, write: [RequestedUsernameWithoutDomain#password] System administrator The system administrator can register new users at any time within his domain, even if the service is not activated in the setup menu. The command is a bit different: As subject, write: [RequestedUsernameWithoutDomain#password [sysadminNameWithoutDomain#ValidPassword] Deleting user through e-mail This service is restricted to system administrator only. To delete a user, send an e-mail to deluser@yourdomain As subject, write: [UsernameToDeleteWithoutDomain[sysadminNameWithoutDomain#ValidPassword] Create an ”Auto reply” mail ”Auto reply” can be used for several purposes. For example: • Automatic response to indicate to the sender that you have received his letter. • Sending address change information, if you have changed your address or if you’re having a temporary address while on holiday. • Automatic sending of product or company -information” The user can set up his auto ”reply message” by himself. Follow the steps below: Create the message you wish to use as ”auto reply” using your standard mail software. The mail will be saved exactly as you set it up, including any attachments. At the end of your subject line, add the following text: Subject: This is the subject. [YourUserNameWithoutDomain#ValidPassword] The address is used to identify the receiver of the ”auto reply” message. This part of the Subject-line will be erased before saving the message. Send the mail to: autoreply@yourdomain System administrator The system administrator can create ”auto reply’s” for any user within his domain. The command is a bit different: Subject: This is the subject. [UserNameWithoutDomain [sysadminNameWithoutDomain#ValidPassword] Deleting an ”Auto reply” mail To delete a ”auto reply” mail, send E-mail to delautoreply@yourdomain As subject, write: [UsernameWithoutDomain #ValidPassword] System administrator The system administrator can delete any users ”auto reply’s” within his domain, at any time, use the following command: [UsernameWithoutDomain #ValidPassword[sysadminNameWithoutDomain#ValidPassword] Setting up a forward adress through e-mail To setup and activate a forward address for your account, you send an E- mail to forward@yourdomain As subject, write: [NewForwardAddress[YourEmailAddressWithoutDomain#password] If you omit the forward address, the current forward address will be activated: [[YourEmailAddressWithoutDomain#password] Deactivating a forward adress through e-mail To deactivate your current forwarding, send a mail to stopforward@yourdomain As subject, write: [YourEmailAddressWithoutDomain #ValidPassword] Sending priority mail When Mailcoach receives a priority mail, it will immediately run a UUCP transport. To Use this function, the user must have the access-level of ”priority mail” or higher, the option must be activated under setup - system - general and the user mail-software must have a valid return address. There is no standardized method for handling priority mail within Internet yet and because of that, no mail software handles this thing the same way (if it handles it at all). If your mail software can send priority mail, try it and see if it works. Pegasus, Eudora, Microsoft mail & News, Netscape and Embla is tested and works fine. If it doesn’t work, you need to use the second method: In the subject field, write ”(priority mail)” after your own subject. This command instructs Mailcoach to deliver your mail immediately. The extra field will be deleted from your mail before transferring. Internal mail transport and sorting All mail that are posted to a user registered in Mailcoach will be transported within one minute without sending it through UUCP first. If there are CC to the outside does not matter. Sorting lists Several of the lists available in Mailcoach has buttons as caption. By pressing these buttons, the list will be sorted in that column. Creating scripts Summary Most, if not all ISP requires a logon procedure, this procedure can look very different from ISP to ISP. Some will only need username and password, while others have a complete menu of selections. To automate such login procedure, you need a script. A script is a text-file containing commands and expressions that are setup to process incoming text from the modem and respond with system variables or text. In Mailcoach main directory there is an example script that you can use and modify to fit your needs. Structure The structure of a script is shown below: Proc Variable declaration Command block endproc As seen above, the script must start with ”proc” and end with ”endproc”. All variables must be declared before used. Commands are executed from top to bottom and the script ends when it reaches endproc. Variables A script can contain variables. A variable must begin with a character followed by digits or character in upper or lowercase. Reserved words cannot be used. See the list of reserved words in the end of this chapter. You must declare a variable before using it and when declaring it you select the type of variable. The following types are available. Type Explanation Integer Can contain a number between -32767 and +32767 String Can contain characters or digits. Boolean Can only contain the value TRUE or FALSE Variables can be assigned values when declared. Example: Integer Count = 3 Integer Timeout = (4*3) Integer i Boolean Done = FALSE String ThePassword = ”MyPassword” Login variables Login variables contains the information entered in the Setup / host / Login-tab. The following login variables are available. Name Type Login entry: $UserId String Login name $Password String Password $UucpLogin String Uucp login name $UucpPassword String Uucp password $LocalHostname String Local UUCP hostname $RemoteHostName String Remote UUCP hostname System variables System variables are variables that are preset by Mailcoach and cannot be changed in the script. The following system variables are available: Name Type Explanation $Success Boolean This variable is set to TRUE if certain commands is successful $Failure Boolean This variable is set to TRUE if certain commands fails. String constants Sometimes special characters are needed when sending strings to the ISP. The following string constants can be used to replace these. String Explanation ^char Caret translation. If char is a character between ”@” and ”_”, this will be converted to a character value between 0 and 31. ^M for example, is converted to carriage return. If char is a character between a and z, this will be converted to a character value between 0 and 26. Other characters will not be converted. Carriage return Line feed \” Citation character \^ Circumflex \< Less then-character \\ Backslash Example: transmit ”^M” transmit ”UUCP^M” transmit ”” transmit ”UUCP” waitfor ”ogin:” Expressions An expression is a combination of operators and arguments that is calculated to a result. Available operators: Operator Type of operator Type * / Multiply, divide Integer + - Add, subtract Integer, String (only add) < > Comparisation less/greater Integer <= >= Less or equal, greater or equal Integer = = Equal Integer != Not equal Integer Example: Count = 2 + 9 * 10 Transmit ”UUCP” + ”Service” Delay 26 / 2 Comments All text preceded by a semicolon is ignored. Example: ;This is a comment Transmit ”UUCP” ;This is also a comment Keywords proc Marks beginning of script endproc Marks end of a script Integer name [=value] Declares a integer variable String name [=value] Declares a string variable Boolean name [=value] Declares a Boolean variable Commands The following commands are available: Delay nSeconds Pauses a script. Example: Delay 2 ;Delay for two seconds Beep Sends a signal to the system speaker. Goto Label Branches to a specified line. Halt Stops the script and terminates the UUCP session. If condition then Commands endif Executes the commands as long as condition is TRUE. Example: if $UserId = = ”Service:” then Transmit ”UUCP^M” endif Label: Specifies a location in the script to jump to. Transmit string Sends the characters specified in string to the remote computer. Example: Transmit ”UUCP” + ”^M” Transmit $UserId + ”^M” Waitfor string [,matchcase] [then label] [until time] Waits until the specified string has been received by the remote computer. If the parameter matchcase is not included, it does not care if the characters received are upper or lowercase. If a matching string has been received and then parameter is used, the script will branch to the location specified by label. Until time-parameter specifies the maximum number of seconds to wait for a string before it starts executing the next line in the script. Without this command, the script might wait forever, although it can be canceled by user or by lost carrier. If the specified string is matched, the system variable Success is set to TRUE, otherwise it is set to false. The system variable will act the opposite, TRUE if failure. Example: waitfor ”Login:” waitfor ”Password:”, matchcase waitfor ”UUCP” then Done waitfor ”name:” until 20 Reserved words and boolean databits delay do endif endproc endwhile even FALSE getip goto halt if integer ipaddr keyboard mark matchcase none odd off on or parity port proc raw screen set space stopbits string then transmit TRUE until waitfor while Additional information For information about: • General information • Local representatives and addresses • Current release and upgrades • Frequently asked questions • Installation tips Please visit Mailcoach home page at: http://www.ymex.se/mailcoach.htm or http://www.multi.se/ymex/mailcoach.htm Information from Ymex electronics AB. Please send E-mail to: info.mailcoach@ymex.se No telephone support available. Support If you have purchased your Mailcoach from a local representative, please contact them for support. You can find addresses or links to all representatives on Mailcoach home page at: http://www.ymex.se/mailcoach.htm or http://www.multi.se/ymex/mailcoach.htm Support from Ymex electronics AB Please send E-mail to: support.mailcoach@ymex.se ----------------------- [1] You will need an upgraded Mailcoach when NT4.0 is released as final.